package o;

import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.view.ActionProvider;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.MenuItem.OnActionExpandListener;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.SubMenu;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;

@RestrictTo({d.LIBRARY_GROUP})
public class bg implements gk {
    private int ʻ = 4096;
    private Mode ʻॱ = null;
    private char ʼ;
    private boolean ʼॱ = false;
    private char ʽ;
    private int ʾ = 16;
    private final int ˊ;
    private Context ˊॱ;
    private final int ˋ;
    private OnMenuItemClickListener ˋॱ;
    private final int ˎ;
    private CharSequence ˏ;
    private int ˏॱ = 0;
    private Drawable ͺ;
    private final int ॱ;
    private int ॱˊ = 4096;
    private CharSequence ॱˋ;
    private boolean ॱˎ = false;
    private CharSequence ॱॱ;
    private ColorStateList ॱᐝ = null;
    private Intent ᐝ;
    private CharSequence ᐝॱ;

    public /* synthetic */ MenuItem setActionView(int i) {
        return ˎ(i);
    }

    public /* synthetic */ MenuItem setActionView(View view) {
        return ˋ(view);
    }

    public /* synthetic */ MenuItem setContentDescription(CharSequence charSequence) {
        return ˎ(charSequence);
    }

    public /* synthetic */ MenuItem setShowAsActionFlags(int i) {
        return ˊ(i);
    }

    public /* synthetic */ MenuItem setTooltipText(CharSequence charSequence) {
        return ˊ(charSequence);
    }

    public bg(Context context, int i, int i2, int i3, int i4, CharSequence charSequence) {
        this.ˊॱ = context;
        this.ˊ = i2;
        this.ˋ = i;
        this.ॱ = i3;
        this.ˎ = i4;
        this.ˏ = charSequence;
    }

    public char getAlphabeticShortcut() {
        return this.ʼ;
    }

    public int getAlphabeticModifiers() {
        return this.ॱˊ;
    }

    public int getGroupId() {
        return this.ˋ;
    }

    public Drawable getIcon() {
        return this.ͺ;
    }

    public Intent getIntent() {
        return this.ᐝ;
    }

    public int getItemId() {
        return this.ˊ;
    }

    public ContextMenuInfo getMenuInfo() {
        return null;
    }

    public char getNumericShortcut() {
        return this.ʽ;
    }

    public int getNumericModifiers() {
        return this.ʻ;
    }

    public int getOrder() {
        return this.ˎ;
    }

    public SubMenu getSubMenu() {
        return null;
    }

    public CharSequence getTitle() {
        return this.ˏ;
    }

    public CharSequence getTitleCondensed() {
        return this.ॱॱ != null ? this.ॱॱ : this.ˏ;
    }

    public boolean hasSubMenu() {
        return false;
    }

    public boolean isCheckable() {
        return (this.ʾ & 1) != 0;
    }

    public boolean isChecked() {
        return (this.ʾ & 2) != 0;
    }

    public boolean isEnabled() {
        return (this.ʾ & 16) != 0;
    }

    public boolean isVisible() {
        return (this.ʾ & 8) == 0;
    }

    public MenuItem setAlphabeticShortcut(char c) {
        this.ʼ = Character.toLowerCase(c);
        return this;
    }

    public MenuItem setAlphabeticShortcut(char c, int i) {
        this.ʼ = Character.toLowerCase(c);
        this.ॱˊ = KeyEvent.normalizeMetaState(i);
        return this;
    }

    public MenuItem setCheckable(boolean z) {
        this.ʾ = (z ? 1 : 0) | (this.ʾ & -2);
        return this;
    }

    public MenuItem setChecked(boolean z) {
        this.ʾ = (z ? 2 : 0) | (this.ʾ & -3);
        return this;
    }

    public MenuItem setEnabled(boolean z) {
        this.ʾ = (z ? 16 : 0) | (this.ʾ & -17);
        return this;
    }

    public MenuItem setIcon(Drawable drawable) {
        this.ͺ = drawable;
        this.ˏॱ = 0;
        ˎ();
        return this;
    }

    public MenuItem setIcon(int i) {
        this.ˏॱ = i;
        this.ͺ = fo.ˊ(this.ˊॱ, i);
        ˎ();
        return this;
    }

    public MenuItem setIntent(Intent intent) {
        this.ᐝ = intent;
        return this;
    }

    public MenuItem setNumericShortcut(char c) {
        this.ʽ = c;
        return this;
    }

    public MenuItem setNumericShortcut(char c, int i) {
        this.ʽ = c;
        this.ʻ = KeyEvent.normalizeMetaState(i);
        return this;
    }

    public MenuItem setOnMenuItemClickListener(OnMenuItemClickListener onMenuItemClickListener) {
        this.ˋॱ = onMenuItemClickListener;
        return this;
    }

    public MenuItem setShortcut(char c, char c2) {
        this.ʽ = c;
        this.ʼ = Character.toLowerCase(c2);
        return this;
    }

    public MenuItem setShortcut(char c, char c2, int i, int i2) {
        this.ʽ = c;
        this.ʻ = KeyEvent.normalizeMetaState(i);
        this.ʼ = Character.toLowerCase(c2);
        this.ॱˊ = KeyEvent.normalizeMetaState(i2);
        return this;
    }

    public MenuItem setTitle(CharSequence charSequence) {
        this.ˏ = charSequence;
        return this;
    }

    public MenuItem setTitle(int i) {
        this.ˏ = this.ˊॱ.getResources().getString(i);
        return this;
    }

    public MenuItem setTitleCondensed(CharSequence charSequence) {
        this.ॱॱ = charSequence;
        return this;
    }

    public MenuItem setVisible(boolean z) {
        this.ʾ = (z ? 0 : 8) | (this.ʾ & 8);
        return this;
    }

    public void setShowAsAction(int i) {
    }

    public gk ˋ(View view) {
        throw new UnsupportedOperationException();
    }

    public View getActionView() {
        return null;
    }

    public MenuItem setActionProvider(ActionProvider actionProvider) {
        throw new UnsupportedOperationException();
    }

    public ActionProvider getActionProvider() {
        throw new UnsupportedOperationException();
    }

    public gk ˎ(int i) {
        throw new UnsupportedOperationException();
    }

    public hd ˋ() {
        return null;
    }

    public gk ˎ(hd hdVar) {
        throw new UnsupportedOperationException();
    }

    public gk ˊ(int i) {
        setShowAsAction(i);
        return this;
    }

    public boolean expandActionView() {
        return false;
    }

    public boolean collapseActionView() {
        return false;
    }

    public boolean isActionViewExpanded() {
        return false;
    }

    public MenuItem setOnActionExpandListener(OnActionExpandListener onActionExpandListener) {
        throw new UnsupportedOperationException();
    }

    public gk ˎ(CharSequence charSequence) {
        this.ॱˋ = charSequence;
        return this;
    }

    public CharSequence getContentDescription() {
        return this.ॱˋ;
    }

    public gk ˊ(CharSequence charSequence) {
        this.ᐝॱ = charSequence;
        return this;
    }

    public CharSequence getTooltipText() {
        return this.ᐝॱ;
    }

    public MenuItem setIconTintList(@Nullable ColorStateList colorStateList) {
        this.ॱᐝ = colorStateList;
        this.ॱˎ = true;
        ˎ();
        return this;
    }

    public ColorStateList getIconTintList() {
        return this.ॱᐝ;
    }

    public MenuItem setIconTintMode(Mode mode) {
        this.ʻॱ = mode;
        this.ʼॱ = true;
        ˎ();
        return this;
    }

    public Mode getIconTintMode() {
        return this.ʻॱ;
    }

    private void ˎ() {
        if (this.ͺ == null) {
            return;
        }
        if (this.ॱˎ || this.ʼॱ) {
            this.ͺ = gg.ʻ(this.ͺ);
            this.ͺ = this.ͺ.mutate();
            if (this.ॱˎ) {
                gg.ॱ(this.ͺ, this.ॱᐝ);
            }
            if (this.ʼॱ) {
                gg.ˋ(this.ͺ, this.ʻॱ);
            }
        }
    }
}
